<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .hi {
            width: 50px;
            height: 72px;
            background-image: url(./images/10-sprite-steps.png);
            animation: play 1s steps(10) infinite;
        }
        @keyframes play{
            from {background-position: 0px 0px;}
            to {background-position: -500px 0px;}
        }
    </style>
</head>
<body>
    <img src="./images/10-sprite-steps.png" alt="">
    <div class="hi"></div>
</body>
</html>